﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using BEPUphysics.Entities;
using BEPUphysics.Entities.Prefabs;

namespace The_LarX
{
    public class BepuEntity_Capsule : BepuEntity
    {
        public float Length
        {
            get
            {
                Capsule Cap = (Capsule)Entity;
                return Cap.Length;
            }
            set
            {
                Capsule Cap = (Capsule)Entity;
                Cap.Length = value;
            }
        }

        public float Radius
        {
            get
            {
                Capsule Cap = (Capsule)Entity;
                return Cap.Radius;
            }
            set
            {
                Capsule Cap = (Capsule)Entity;
                Cap.Radius = value;
            }
        }
        public BepuEntity_Capsule()
            : base()
        {
            this.Entity = new Capsule(Vector3.Zero, 1, 1);
            BepuPhysics.ActualBepuPhysics.Space.Add(this.Entity);
            this.Immovable = true;
            this.Mass = 1;
        }


    }
}
